home *** CD-ROM | disk | FTP | other *** search
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: Orbit:SampleCode:ScriptRunner:OSAPlugIn:ScriptRunnerAgent.xih.
- * Generated using:
- * SOM Precompiler somipc: 2.18
- * SOM Emitter emitxih.dll: 2.33
- */
-
- #ifndef SOM_Sample_ScriptRunnerAgent_xih
- #define SOM_Sample_ScriptRunnerAgent_xih
-
- #include <somcls.xh>
- #include <somcm.xh>
-
- #ifndef SOM_Sample_ScriptRunnerAgent_xh
- #include <ScriptRunnerAgent.xh>
- #endif
-
- /*
- * Set the scope of methods functions
- */
- #ifndef SOM_Scope
- #define SOM_Scope extern "C"
- #endif
-
- #define Sample_ScriptRunnerAgent_MaxNoMethods 1
-
- /*
- * -- Instance Data
- */
-
- /*
- * -- Use best possible alignment for instance data slice.
- */
- #if powerc
- # pragma options align=power
- #endif
- typedef struct {
- ODID fScriptRunnerID;
- } Sample_ScriptRunnerAgentData;
- #if powerc
- # pragma options align=reset
- #endif
-
- /*
- * -- Getdata Macro
- */
-
- /*
- * -- This emitter treats Data Tokens as Thunks by default.
- * -- Use the sc modifier "nothunks" to override this default.
- */
- SOMEXTERN typedef Sample_ScriptRunnerAgentData* (* SOMLINK somTD_Sample_ScriptRunnerAgent_DataThunk)(void*);
- #define Sample_ScriptRunnerAgentGetData(somSelf) \
- (((somTD_Sample_ScriptRunnerAgent_DataThunk)(Sample_ScriptRunnerAgentClassData.instanceDataToken))(somSelf))
-
- /*
- * -- Instance Data Access Macros for use in Method Procedures
- */
- #ifdef VARIABLE_MACROS
- #define _fScriptRunnerID (somThis->fScriptRunnerID)
- #endif
-
-
- /*
- * Trace/Debug macro
- */
- #ifndef Sample_ScriptRunnerAgentMethodDebug
- #define Sample_ScriptRunnerAgentMethodDebug(c,m) SOMMethodDebug(c,m)
- #endif
-
- /*
- * -- Method Macros for use in Method Procedures
- */
- #ifdef METHOD_MACROS
- #define _InitObject somSelf->InitObject
- #define _HasExtension somSelf->HasExtension
- #define _AcquireExtension somSelf->AcquireExtension
- #define _ReleaseExtension somSelf->ReleaseExtension
- #define _Purge somSelf->Purge
- #define _IsEqualTo somSelf->IsEqualTo
- #define _SubClassResponsibility somSelf->SubClassResponsibility
- #define _somInit somSelf->somInit
- #define _somUninit somSelf->somUninit
- #define _somInit somSelf->somInit
- #define _somUninit somSelf->somUninit
- #define _somDuplicateReference somSelf->somDuplicateReference
- #define _somCompareReference somSelf->somCompareReference
- #define _somRelease somSelf->somRelease
- #define _somFree somSelf->somFree
- #define _somCanDelete somSelf->somCanDelete
- #define _somGetClass somSelf->somGetClass
- #define _somGetClassName somSelf->somGetClassName
- #define _somGetSize somSelf->somGetSize
- #define _somIsA somSelf->somIsA
- #define _somRespondsTo somSelf->somRespondsTo
- #define _somIsInstanceOf somSelf->somIsInstanceOf
- #define _somDispatch somSelf->somDispatch
- #define _somClassDispatch somSelf->somClassDispatch
- #define _somCastObj somSelf->somCastObj
- #define _somResetObj somSelf->somResetObj
- #define _somPrintSelf somSelf->somPrintSelf
- #define _somDumpSelf somSelf->somDumpSelf
- #define _somDumpSelfInt somSelf->somDumpSelfInt
- #define _AcquireScriptRunner somSelf->AcquireScriptRunner
- #define _somInit somSelf->somInit
- #define _somUninit somSelf->somUninit
- #endif
-
-
- /*
- * Introduced methods
- */
-
- /* New Method: AcquireScriptRunner */
- SOM_Scope ODExtension* SOMLINK ScriptRunnerAgent__AcquireScriptRunner(Sample_ScriptRunnerAgent *somSelf, Environment *ev,
- ODDraft* draft);
-
- /*
- * Overridden methods
- */
-
- /* Overridden method: somInit */
- SOM_Scope void SOMLINK ScriptRunnerAgent__somInit(Sample_ScriptRunnerAgent *somSelf);
- SOMEXTERN typedef void (* SOMLINK somTD_xih_Sample_ScriptRunnerAgent_somInit)(Sample_ScriptRunnerAgent *somSelf);
- inline void SOMLINK Sample_ScriptRunnerAgent_parent_ODObject_somInit(Sample_ScriptRunnerAgent *somSelf)
- {
- (void) (somSelf);
- }
- /* define a variety of (possibly ambiguous) short forms */
- #ifndef SOMGD_pmc_parent_somInit
- #ifdef parent_somInit
- #define SOMGD_pmc_parent_somInit
- #undef parent_somInit
- #else
- #define parent_somInit Sample_ScriptRunnerAgent_parent_ODObject_somInit
- #endif
- #endif
- #ifndef SOMGD_pmc_parent_ODObject_somInit
- #ifdef parent_ODObject_somInit
- #define SOMGD_pmc_parent_ODObject_somInit
- #undef parent_ODObject_somInit
- #else
- #define parent_ODObject_somInit Sample_ScriptRunnerAgent_parent_ODObject_somInit
- #endif
- #endif
- #define Sample_ScriptRunnerAgent_parents_somInit(arg0) \
- (void) Sample_ScriptRunnerAgent_parent_ODObject_somInit(arg0)
-
- /* Overridden method: somUninit */
- SOM_Scope void SOMLINK ScriptRunnerAgent__somUninit(Sample_ScriptRunnerAgent *somSelf);
- SOMEXTERN typedef void (* SOMLINK somTD_xih_Sample_ScriptRunnerAgent_somUninit)(Sample_ScriptRunnerAgent *somSelf);
- inline void SOMLINK Sample_ScriptRunnerAgent_parent_ODObject_somUninit(Sample_ScriptRunnerAgent *somSelf)
- {
- (void) (somSelf);
- }
- /* define a variety of (possibly ambiguous) short forms */
- #ifndef SOMGD_pmc_parent_somUninit
- #ifdef parent_somUninit
- #define SOMGD_pmc_parent_somUninit
- #undef parent_somUninit
- #else
- #define parent_somUninit Sample_ScriptRunnerAgent_parent_ODObject_somUninit
- #endif
- #endif
- #ifndef SOMGD_pmc_parent_ODObject_somUninit
- #ifdef parent_ODObject_somUninit
- #define SOMGD_pmc_parent_ODObject_somUninit
- #undef parent_ODObject_somUninit
- #else
- #define parent_ODObject_somUninit Sample_ScriptRunnerAgent_parent_ODObject_somUninit
- #endif
- #endif
- #define Sample_ScriptRunnerAgent_parents_somUninit(arg0) \
- (void) Sample_ScriptRunnerAgent_parent_ODObject_somUninit(arg0)
-
- /*
- * -- Primary Implementation File Support
- */
- #if (defined(Sample_ScriptRunnerAgent_Class_Source) || defined(SOM_Module_scriptrunneragent_Source))
-
- /*
- * -- The Sample_ScriptRunnerAgent ClassData Structure
- */
-
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma export list Sample_ScriptRunnerAgentClassData
- #endif
-
-
- /*
- * -- The Sample_ScriptRunnerAgent Class Ancestor Table
- */
- static somClassDataStructure * SOMDLINK Sample_ScriptRunnerAgentClassAncestors [] = {
- (somClassDataStructure*) & ODObjectClassData, /* parent */
- (somClassDataStructure*) & SOMObjectClassData, /* ancestor */
- };
-
-
- /*
- * -- The Sample_ScriptRunnerAgent Override ProcPtr Implementations Table
- */
- static somMethodPtr Sample_ScriptRunnerAgentOverrideProcs [] = {
- (somMethodPtr) ScriptRunnerAgent__somInit, /* override class SOMObject */
- (somMethodPtr) ScriptRunnerAgent__somUninit, /* override class SOMObject */
- };
-
-
- static void Sample_ScriptRunnerAgentDLLD ( void ) { }
-
-
- /*
- * -- The Sample_ScriptRunnerAgent Static Class Info Master Table
- */
- static somStaticClassInfo Sample_ScriptRunnerAgentSCI = {
- 70, /* layout version */
- (somClassDataStructure*) & Sample_ScriptRunnerAgentClassData, /* main token table */
- Sample_ScriptRunnerAgentOverrideProcs, /* override proc implemenations table */
- Sample_ScriptRunnerAgentClassAncestors, /* ancestor table */
- Sample_ScriptRunnerAgentDLLD, /* DLLdesignator */
- 0, /* no special procs */
- 0, /* rtci slot */
- 0, /* count slot */
- 0, /* dynamic ancestry */
- 0, /* free */
- 0, /* free */
- 0, /* free */
- 0, /* free */
-
- /*
- * -- The Sample_ScriptRunnerAgent Counts Table
- */
- (somStaticClassCounts *)
- "\x00\x00\x00\x01" /* majorversion */
- "\x00\x00\x00\x01" /* minorversion */
- "\x00\x00\x00\x01" /* flags */
- "\x00\x02" /* type code alignment */
- "\x00\x01" /* classTokenCount */
- "\x00\x01" /* numDirectParents */
- "\x00\x00" /* numMetaClasses */
- "\x00\x01" /* numOverriddenAncestors */
- "\x00\x00" /* numMigratedMethods */
- "\x00\x00" /* numSelectedInherited */
- "\x00\x00" /* numUnused */
- "\x00\x00" /* free */
- "\x00\x00" /* free */
- "\x00\x00" /* free */
- "\x00" /* free */
- ,
-
- {
- "Sample::ScriptRunnerAgent", /* the class name */
- sizeof (Sample_ScriptRunnerAgentData), /* class instance data size */
-
- /*
- * -- The Sample_ScriptRunnerAgent Parent Versions Table
- */
- (somParentVersions *)
- "\x00\x00\x00\x01" /* majorversion */
- "\x00\x00\x00\x00" /* minorversion */
- ,
-
-
- /*
- * -- The Sample_ScriptRunnerAgent Token Slot Usage Table
- */
- (somSlotUsage *)
- "",
-
-
- /*
- * -- The Sample_ScriptRunnerAgent Method Signature Info
- */
- (somSignatureInfo *)
- "\x03\x0c" /* AcquireScriptRunner */
- ,
-
-
- /*
- * -- The Sample_ScriptRunnerAgent Class Method Names
- */
- "AcquireScriptRunner\0"
- ,
-
-
- /*
- * -- The Sample_ScriptRunnerAgent Override Slots Table
- */
- (somOverrideData *)
- "\x00\x01\x00\x02" /* parent SOMObject has 2 overrides */
- "\x00\x00" /* somInit */
- "\x00\x01" /* somUninit */
- ,
-
- 0, /* no migrated methods table */
- 0, /* no selected inherited */
- 0, /* unused */
-
- 0, /* free */
- 0, /* free */
- 0, /* free */
- 0, /* free */
- },
- };
-
- /*
- * -- The Sample_ScriptRunnerAgent ClassData Structure
- */
- struct Sample_ScriptRunnerAgentClassDataStructure SOMDLINK Sample_ScriptRunnerAgentClassData = {
- 0, /* zero */
- & Sample_ScriptRunnerAgentSCI, /* SCI link */
- 0, /* instanceDataToken */
- 0, /* reserved */
- 0, /* reserved */
- 0, /* reserved */
- (somMToken) ScriptRunnerAgent__AcquireScriptRunner, /* AcquireScriptRunner:method */
- };
-
-
- /*
- * Functions for attributes.
- */
-
- /*
- * Macros for initializers/destructors
- */
-
- #endif /* Primary Implementation Support */
-
- #endif /* SOM_Sample_ScriptRunnerAgent_xih */
-